export default {
    path: '/',
    name: 'Layout',
    redirect: '/home',
    component: () => import('@/layout/index.vue'),
    meta: {},
    children: [
        {
            path: '/home',
            name: 'Home',
            component: () => import('@/views/home/index.vue'),
            meta: {
                icon: 'home-page',
                title: '首页',
                isShow: true,
                parentRoute: 'Layout',
                isAffix: true,
                isFull: false,
                isKeepAlive: true,
            },
        },
        {
            path: '/menus',
            name: 'Menus',
            meta: {
                icon: 'home-page',
                title: '菜单',
                isShow: true,
                parentRoute: 'Layout',
            },
            children: [
                {
                    path: '/menus/menu1',
                    name: 'SubMenu1',
                    component: () => import('@/views/subMenu/index.vue'),
                    meta: {
                        title: '菜单1',
                        icon: 'home-page',
                        isShow: true,
                        parentRoute: 'Menus',
                        isAffix: false,
                        isFull: false,
                        isKeepAlive: true,
                    },
                },
            ],
        },
        {
            path: '/user',
            name: 'User',
            component: () => import('@/views/user/index.vue'),
            meta: {
                icon: 'home-page',
                title: '用户',
                isShow: true,
                parentRoute: 'Layout',
                isAffix: false,
                isFull: false,
                isKeepAlive: true,
            },
        },
        {
            path: '/role',
            name: 'Role',
            component: () => import('@/views/role/index.vue'),
            meta: {
                icon: 'home-page',
                title: '角色',
                isShow: true,
                parentRoute: 'Layout',
                isAffix: false,
                isFull: false,
                isKeepAlive: true,
            },
        },
        {
            path: '/auth',
            name: 'Auth',
            component: () => import('@/views/auth/index.vue'),
            meta: {
                icon: 'home-page',
                title: '权限',
                isShow: true,
                parentRoute: 'Layout',
                isAffix: false,
                isFull: false,
                isKeepAlive: true,
            },
        },
        {
            path: '/jsplumb',
            name: 'Jsplumb',
            component: () => import('@/views/jsplumb/index.vue'),
            meta: {
                icon: 'home-page',
                title: '流程图',
                isShow: true,
                parentRoute: 'Layout',
                isAffix: false,
                isFull: false,
                isKeepAlive: true,
            },
        },
    ],
};
